package com.woniuxy.service;

import com.woniuxy.controller.form.GetGoodsAppLogForm;
import com.woniuxy.controller.form.SaveGoodsAppraiseLogForm;
import com.woniuxy.model.PawnGoodsAppraiseLog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.utils.Result;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hujianying
 * @since 2022-03-23
 */
public interface PawnGoodsAppraiseLogService extends IService<PawnGoodsAppraiseLog> {


    /**
     * 根据商品id查询历史评估记录
     * @param ggalf goodsId
     * @return GoodsAppLogInfo
     */
    Result getGoodsAppraiseLogByGoodsId(GetGoodsAppLogForm ggalf);

    /**
     * 新建评估
     * @param sgalf SaveGoodsAppraiseLogForm
     * @return data为null
     */
    Result saveGoodsAppraiseLog(@RequestBody SaveGoodsAppraiseLogForm sgalf);
}
